package com.pccw.service.acrm;

import java.util.List;

import com.acrm.client.entity.global.SelectItem;
import com.acrm.client.entity.staff.Staff;
import com.acrm.client.exception.InteractionException;
import com.pccw.hessian.support.cache.CachePolicy;
import com.pccw.hessian.support.cache.OptModel;
import com.pccw.hessian.support.client.TaskExecuteListener;

public interface PublicService {
	
	@CachePolicy(model=OptModel.WRITE,key="loginuser",expires=-1)
	Staff login(String username,String password) throws InteractionException;
	@CachePolicy(model=OptModel.READ,key="loginuser",expires=-1)
	Staff getLoginUser();
	void login(String username,String password,TaskExecuteListener<Staff, Throwable> listener);
	
	
	List<SelectItem> getAllAccountList();
	
	
}